
Page({

  /**
   * 页面的初始数据
   */
  data: {
    checked: false,
    
  },
  handleChange(e) {
    this.setData({
      checked: e.detail.checked,
    });
  },

  methods: {
    
  },
  click(e) {
    const { trigger } = e.detail;
    console.log('click: ', trigger);
  },
}),
Component({
  data: {
    cityText: '',
    cityValue: [],
    dateText: '',
    dateValue: [],
    citys: [
      { label: '实习', value: '实习' },
      { label: '校招', value: '校招' },
      { label: '兼职', value: '兼职' },
    ],
   
  },

  methods: {
    onColumnChange(e) {
      console.log('picker pick:', e);
    },

    onPickerChange(e) {
      const { key } = e.currentTarget.dataset;
      const { value } = e.detail;

      console.log('picker change:', e.detail);
      this.setData({
        [`${key}Visible`]: false,
        [`${key}Value`]: value,
        [`${key}Text`]: value.join(' '),
      });
    },

    onPickerCancel(e) {
      const { key } = e.currentTarget.dataset;
      console.log(e, '取消');
      console.log('picker1 cancel:');
      this.setData({
        [`${key}Visible`]: false,
      });
    },

    onCityPicker() {
      this.setData({ cityVisible: true });
    },

    click(e) {
      const { trigger } = e.detail;
      console.log('click: ', trigger);
    },
    
  },



});

